﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    public class Animal : Interface1
    {
        public int id { get; set; }
        public string name { get; set; }
        public void Eat()
        {
            Console.WriteLine("动物都会吃食物的哟");
        }
        public void Play()
        {
            Console.WriteLine("动物也会玩耍");
        }
    }

    public class Dog : Animal
    {
        public void Eat()
        {
            Console.WriteLine("狗会吃骨头");
        }
        public void Play()
        {
            Console.WriteLine("狗会活蹦乱跳");
        }

    }


}
